Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 4 - Geometric Objects / Geometric Objects Reference
Geometric Objects Routines / Creating and Editing Meshes


Q3Mesh_FaceNew

You can use the Q3Mesh_FaceNew function to add a face to a mesh.

TQ3MeshFace Q3Mesh_FaceNew (
TQ3GeometryObject mesh, 
unsigned long numVertices, 
const TQ3MeshVertex *vertices, 
TQ3AttributeSet attributeSet);
mesh
A mesh.
numVertices
The number of mesh vertices in the vertices array.
vertices
A pointer to an array of mesh vertices defining the new mesh face. These vertices can be ordered either clockwise or counterclockwise.
attributeSet
The desired set of attributes for the new mesh face. Set this parameter to NULL if you do no want any attributes for the new face.
DESCRIPTION
The Q3Mesh_FaceNew function adds the face specified by the vertices parameter to the mesh specified by the mesh parameter. The mesh must already exist before you call Q3Mesh_FaceNew. The new mesh face is returned as the function result.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996